﻿package mortal.game.control
{
    import mortal.game.events.*;
    import mortal.game.mvc.*;
    import mortal.game.view.wardrobe.*;
    import mortal.mvc.core.*;

    public class WardrobeController extends Controller
    {

        public function WardrobeController()
        {
            return;
        }// end function

        override protected function initServer() : void
        {
            Dispatcher.addEventListener(EventName.WardrobeOpenWardrobe, this.onOpenWardrobeHandler);
            NetDispatcher.addCmdListener(ServerCommand.WardrobeOpenWinOnDress, this.openWardrobeOnActive);
            return;
        }// end function

        private function onOpenWardrobeHandler(event:DataEvent) : void
        {
            var _loc_2:* = event.data as int;
            WardrobeWin.instance.show();
            WardrobeWin.instance.openWardrobePanel(_loc_2);
            return;
        }// end function

        private function openWardrobeOnActive(param1:Object) : void
        {
            return;
        }// end function

    }
}
